home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Offline Browsing / HTTrack.exe / data1.cab / Sources / src / htsback.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-28  |  2.8 KB  |  75 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche and other contributors
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. Please visit our Website: http://www.httrack.com
  29. */
  30.  
  31. /* ------------------------------------------------------------ */
  32. /* File: httrack.c subroutines:                                 */
  33. /*       backing system (multiple socket download)              */
  34. /* Author: Xavier Roche                                         */
  35. /* ------------------------------------------------------------ */
  36.  
  37.  
  38. #ifndef HTSBACK_DEFH
  39. #define HTSBACK_DEFH 
  40.  
  41. #include "htsglobal.h"
  42. #include "htsbasenet.h"
  43. #include "httrack.h"
  44.  
  45. // backing
  46. #define BACK_ADD_TEST "(dummy)"
  47. #define BACK_ADD_TEST2 "(dummy2)"
  48. int  back_index(lien_back* back,int back_max,char* adr,char* fil,char* sav);
  49. int back_available(lien_back* back,int back_max);
  50. LLint back_incache(lien_back* back,int back_max);
  51. HTS_INLINE int  back_exist(lien_back* back,int back_max,char* adr,char* fil,char* sav);
  52. int  back_nsoc(lien_back* back,int back_max);
  53. int  back_add(lien_back* back,int back_max,httrackp* opt,cache_back* cache,char* adr,char* fil,char* save,char* referer_adr,char* referer_fil,int test,short int* pass2_ptr);
  54. int  back_stack_available(lien_back* back,int back_max);
  55. void back_clean(httrackp* opt,cache_back* cache,lien_back* back,int back_max);
  56. void back_wait(lien_back* back,int back_max,httrackp* opt,cache_back* cache,double stat_timestart);
  57. int  back_delete(lien_back* back,int p);
  58. void back_info(lien_back* back,int i,int j,FILE* fp);
  59. void back_infostr(lien_back* back,int i,int j,char* s);
  60. LLint  back_transfered(LLint add,lien_back* back,int back_max);
  61. // hostback
  62. #if HTS_XGETHOST
  63. void back_solve(lien_back* back);
  64. int host_wait(lien_back* back);
  65. #endif
  66. int back_checksize(httrackp* opt,lien_back* eback,int check_only_totalsize);
  67.  
  68. #if HTS_XGETHOST
  69. #if USE_BEGINTHREAD
  70. PTHREAD_TYPE Hostlookup(void* iadr_p);
  71. #endif
  72. #endif
  73.  
  74. #endif
  75.